Creates an orderable partitioner from an IList<(Of <(T>)>)
instance.
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function Create(Of TSource) ( _
list As IList(Of TSource), _
loadBalance As Boolean _
) As OrderablePartitioner(Of TSource) |
C# |
---|
public static OrderablePartitioner<TSource> Create<TSource>(
IList<TSource> list,
bool loadBalance
)
|
Parameters
- list
- Type: System.Collections.Generic..::.IList<(Of <(TSource>)>)
The list to be partitioned.
- loadBalance
- Type: System..::.Boolean
A Boolean value that indicates whether the created partitioner should dynamically
load balance between partitions rather than statically partition.
Type Parameters
- TSource
- Type of the elements in source list.
Return Value
An orderable partitioner based on the input list.
See Also